Objs = funs.o kernels.o gflops.o verify.o msR2.o msR4.o
all:	gflops verify msR2 msR4

gflops:	gflops.o funs.o kernels.o
	gcc -o gflops gflops.o funs.o kernels.o -lOpenCL -lclAmdFft.Runtime
verify:	verify.o funs.o kernels.o
	gcc -o verify verify.o funs.o kernels.o -lOpenCL -lclAmdFft.Runtime
msR2:	msR2.o funs.o kernels.o
	gcc -o msR2 msR2.o funs.o kernels.o -lOpenCL -lm
msR4:	msR4.o funs.o kernels.o
	gcc -o msR4 msR4.o funs.o kernels.o -lOpenCL -lm

funs.o:	funs.c fftz.h
	gcc -c -g funs.c
kernels.o:kernels.c
	gcc -c kernels.c
gflops.o:gflops.c fftz.h
	gcc -c gflops.c
verify.o:verify.c fftz.h
	gcc -c verify.c
msR2.o:	msR2.c fftz.h
	gcc -c msR2.c
msR4.o: msR4.c fftz.h
	gcc -c msR4.c

clean:
	rm $(Objs) gflops verify msR2 msR4
